_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

    How to send RAW Data to CUPS Printer

                                          25 July 2006 by K.Nagai

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

// Explanation //
  If you want to send RAW data file to Printer without any filtering,
  you can use "-oraw" option of the "LPR" command.

// Command Syntax //
  lpr -P [ Printer Name ] -oraw [ RAW Data File Name ]

// i.e.(on Linux)
  [root@DDE152N-LINUX temp]# ls -l
  -rw-------    1 root     root            1  July 10 18:55 BinaryDataForTSP700.prn
  [root@DDE152N-LINUX _work]# lpstat -p
  printer TSP143_(STR_T-001) is idle.  enabled since Jan 01 00:00
  printer TSP700E is idle.  enabled since Jan 01 00:00
  [root@DDE152N-LINUX _work]# lpr -P TSP700E -oraw BinaryDataForTSP700.prn
  [root@DDE152N-LINUX _work]#

// i.e.(on Mac OS-X)
  developers-computer:~/Desktop Developer$ ls
  BellCmd.bin
  developers-computer:~/Desktop Developer$ lpr -P "TSP143__STR_T_001_" -oraw BellCmd.bin

  -> If "BellCmd.bin" contains only "0x07" data, you can kick cash drawer without any printing.

// How to get "Correct" Printer Name //
  "lpstat" command teach you correct name of printers installed on your system.

  (i.e.  On Linux)
  [root@DDE152N-LINUX _work]# lpstat -p
  printer TSP143_(STR_T-001) is idle.  enabled since Jan 01 00:00
  printer TSP700E is idle.  enabled since Jan 01 00:00

  (i.e.  On Mac-OS-X)
  developers-computer:~/Desktop Developer$ lpstat -p
  printer TSP143__STR_T_001_ is idle.  enabled since Jan 01 00:00
